package basedao;

import java.io.IOException;
import java.util.List;
import java.util.Properties;

import javax.sql.DataSource;

import org.apache.commons.dbutils.QueryRunner;

import com.alibaba.druid.pool.DruidDataSourceFactory;

import bean.orders;

public class BaseDao {		
	public static QueryRunner query=null;
		
	static {
		Properties properties=new Properties();
		try {
			properties.load(BaseDao.class.getResource("/config.propertie").openStream());
		DataSource dSource = DruidDataSourceFactory.createDataSource(properties);
		query=new QueryRunner(dSource);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	

		
	}


